// 导入组件
const Layout = () => import('@/layout/index.vue')
const course = () => import('@/views/educational/course.vue')
const courseStudent = () => import('@/views/educational/courseStudent.vue')
const grade = () => import('@/views/educational/grade.vue')
const courseTeacher = () => import('@/views/educational/courseTeacher.vue')
const recordScore = () => import('@/views/educational/recordScore.vue')
const teachingClass = () => import('@/views/educational/teachingClass.vue')
const statistical = () => import('@/views/educational/statistical.vue')


// 导出该组件
export default ([
    {
        path: "/educational",
        component: Layout,
        name: 'educational',
        meta: {
            title: '教务管理',
        },
        icon: 'Position',
        children: [
            {
                path: '/course',
                name: 'course',
                component: course,
                meta: {
                    title: '课程管理',
                },
                hidden: false
            },
            {
                path: '/teachingClass',
                name: 'teachingClass',
                component: teachingClass,
                meta: {
                    title: '教学班级',
                },
                hidden: false
            },
            {
                path: '/courseStudent',
                name: 'courseStudent',
                component: courseStudent,
                meta: {
                    title: '学生选课',
                },
                hidden: false
            },
            {
                path: '/grade',
                name: 'grade',
                component: grade,
                meta: {
                    title: '成绩查询',
                },
                hidden: false
            },
            {
                path: '/statistical',
                name: 'statistical',
                component: statistical,
                meta: {
                    title: '统计分析',
                },
                hidden: false
            },
            {
                path: '/courseTeacher',
                name: 'courseTeacher',
                component: courseTeacher,
                meta: {
                    title: '我教的课',
                },
                hidden: false
            },
            {
                path: '/recordScore',
                name: 'recordScore',
                component: recordScore,
                meta: {
                    title: '录入成绩',
                },
                hidden: true
            }
        ]
    }
])